module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/', 

  outputDir: 'dist', 

  assetsDir: '', 

  indexPath: 'index.html', 

  filenameHashing: true, 

  pages: { 
    index: {
      entry: 'src/main.js', 
      template: 'public/index.html', 
      filename: 'index.html', 
      title: '', 
      chunks: ['chunk-vendors', 'chunk-common', 'index'] 
    },
    
    subpage: 'src/main.js'
  },

  lintOnSave: process.env.NODE_ENV !== 'production', 
  
  runtimeCompiler: false,
  
  transpileDependencies: [],
  
  productionSourceMap: true,

  crossorigin: '', 
  
  integrity: false,
  
  
  configureWebpack: {},
  
  chainWebpack: () => {},
  
  devServer: {
    open: false,
    port: 8080,
    proxy: { 
      '/api/': {
        changeOrigin: true, 
        pathRewrite: {
          '^/api': ''
        }, 
        
        target: 'http://jxjf-gs.com', 
      }
    } 
  },
  
  parallel: require('os').cpus().length > 1,
  
  pwa: {},
  
  pluginOptions: {}
}